import java.util.Scanner;

public class shengxiao {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        System.out.println("请输入一个年份：");
        int year = scan.nextInt();

        String[] animals = { "rat", "ox", "tiger", "rabbit", "dragon", "snake", "horse", "sheep", "monkey", "rooster",
                "dog", "pig" };
        int index = (year - 4) % 12; 
        if (index < 0) {
            index += 12; 
        }

        System.out.println(year + "年的生肖是：" + animals[index]);

        scan.close();
    }
}
